﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Selector - Basic Filter</title>
    <script src="script/jquery-1.3.2.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
            $("#run").click(function() {
                $("div:animated").toggleClass("colored");
            });

            function animateIt() {
                $("#mover").slideToggle("slow", animateIt);
            }

            animateIt();
        });
    </script>
    <style type="text/css">
    #mover
    {
    	width:100px;
    	height:100px;
    	border:dashed 1px Gray;
    }
    
    .colored
    {
    	background-color:Lime;
    }
    </style>
</head>
<body>
    <button id="run">Run</button> 

    <div></div> 
    <div id="mover"></div> 
    <div></div>
</body>
</html>
